<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>회원목록</title>
</head>
<body>
 <c:choose>
 	<c:when test="${requestScope.title != null }">
 		<h2>${requestScope.title }</h2>
 		<h3>검색조건 : ${requestScope.search_value }</h3>
 	</c:when>
 	<c:otherwise>
 		<h2>회원목록</h2> 	
 	</c:otherwise>
 </c:choose>
<c:if test='${fn:length(requestScope.member_list) == 0 }'>
	<b><i>조회 결과가 없습니다.</i></b><p>
</c:if>
<table width="500" border='1' cellspacing="0">
	<thead>
		<tr>
			<td>ID</td>
			<td>Password</td>
			<td>이름</td>
			<td>주민번호</td>
			<td>마일리지</td>
		</tr>
	</thead>
	<tbody>
		<c:forEach items="${requestScope.member_list }" var="mto">
			<tr>
				<td>${mto.id }</td>
				<td>${mto.password}</td>
				<td>${mto.name}</td>
				<td>${mto.registerNumber1}-${mto.registerNumber2}</td>
				<td>${mto.mileage}</td>
			</tr> 
		</c:forEach>
	</tbody>
</table>
<p>
<a href="/MemberManagerFC_iBatis_spring_insts/index.jsp">메인 페이지</a>
<a href="/MemberManagerFC_iBatis_spring_insts/search_form.jsp">검색 폼</a>
</p>
</body>
</html>



